<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<script type="text/javascript">
	$(document).ready(function(){
		$("#updateForm").submit(function(){			
			var password=$("#password").val();
			var name=$("#name").val();
			var address=$("#address").val();
			
			if(password==""){
				alert("패스워드 입력해");
				return false;
			}else if(name==""){
				alert("이름 입력해");
				return false;
			}else if(address==""){
				alert("주소 입력해");
				return false;
			}
		});//submit
	});//ready
</script>

<form id="updateForm" action="${initParam.root}member/auth_update.do">
아이디 : <input type="text" id="id" name="id" value="${sessionScope.vo.id}" readonly="readonly"><br>
비밀번호 : <input type="password" id="password" name="password" value="${sessionScope.vo.password}"><br>
이름 : <input type="text" id="name" name="name" value="${sessionScope.vo.name}"><br>
주소 : <input type="text" id="address" name="address" value="${sessionScope.vo.address}"><br>
<input type="submit" id="updateBtn" value="수정하기">
</form>
